home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / serien / purity / nr.42 / includes3v1 / includes3v1.lha / Prefs / Serial.i < prev    next >
Text File  |  1994-12-04  |  1KB  |  42 lines

  1.  {      File format for serial preferences }
  2.  
  3.  
  4. {$I "Include:Libraries/IffParse.i"}
  5.  
  6. const
  7.  ID_SERL = 1397051980;
  8.  
  9.  
  10. Type
  11.  SerialPrefs = Record
  12.     sp_Reserved     : Array[0..2] of Integer;               { System reserved                  }
  13.     sp_Unit0Map,                  { What unit 0 really refers to     }
  14.     sp_BaudRate,                  { Baud rate                        }
  15.  
  16.     sp_InputBuffer,               { Input buffer: 0 - 65536          }
  17.     sp_OutputBuffer : Integer;    { Future: Output: 0 - 65536        }
  18.  
  19.     sp_InputHandshake,            { Input handshaking                }
  20.     sp_OutputHandshake,           { Future: Output handshaking       }
  21.  
  22.     sp_Parity,                    { Parity                           }
  23.     sp_BitsPerChar,               { I/O bits per character           }
  24.     sp_StopBits     : Byte;       { Stop bits                        }
  25.  end;
  26.  SerialPrefsPtr = ^SerialPrefs;
  27.  
  28. const
  29. { constants for SerialPrefs.sp_Parity }
  30.  PARITY_NONE     = 0;
  31.  PARITY_EVEN     = 1;
  32.  PARITY_ODD      = 2;
  33.  PARITY_MARK     = 3;               { Future enhancement }
  34.  PARITY_SPACE    = 4;               { Future enhancement }
  35.  
  36. { constants for SerialPrefs.sp_Input/OutputHandshaking }
  37.  HSHAKE_XON      = 0;
  38.  HSHAKE_RTS      = 1;
  39.  HSHAKE_NONE     = 2;
  40.  
  41.  
  42.